package com.study.manage.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.study.manage.domain.enumm.AdverPosition;
import com.study.manage.domain.enumm.AdverTarget;
import com.study.manage.domain.enumm.LiveDieState;

@SuppressWarnings("serial")
@Entity
@Table(name = "sa_advertisement")
public class Advertisement extends AbstractEntity {

    public AdverPosition position;

    public Long positionId;

    @Column(columnDefinition = "tinyint")
    public Integer squen;

    public String mediaUrl;

    public String title;

    public AdverTarget target;

    @Column(columnDefinition = "tinyint")
    public Integer targetType;

    public Integer targetKide;

    public Long targetId;

    public String targetUrl;

    public LiveDieState state = LiveDieState.LIVE;

    public Advertisement() {}

    public Advertisement(Long id) {
        this.id = id;
    }
}
